package cn.com.cabinet.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cabinet.web.entity.Admin;
import com.cabinet.web.entity.User;

import cn.com.cabinet.dao.AdminDao;

@Service
public class AdminServiceImpl {
	@Autowired
	private AdminDao adminDao;
	
	
	public Boolean checkManger(String account,String password){
		
		Admin admin = adminDao.getAdminByAdminAccountAndAdminPassword(account, password);
		if(admin == null){
			System.out.println("false");
			return false;
		}else{
			System.out.println("true");
			return true;
		}
		
		
	}

}
